import request from '@/utils/request'

// 查询物资出库记录列表
export function listMaterielOutboundRecord(query) {
  return request({
    url: '/hospital/MaterielOutboundRecord/list',
    method: 'get',
    params: query
  })
}

// 查询物资出库记录详细
export function getMaterielOutboundRecord(id) {
  return request({
    url: '/hospital/MaterielOutboundRecord/' + id,
    method: 'get'
  })
}

// 新增物资出库记录
export function addMaterielOutboundRecord(data) {
  return request({
    url: '/hospital/MaterielOutboundRecord',
    method: 'post',
    data: data
  })
}

// 修改物资出库记录
export function updateMaterielOutboundRecord(data) {
  return request({
    url: '/hospital/MaterielOutboundRecord',
    method: 'put',
    data: data
  })
}

// 删除物资出库记录
export function delMaterielOutboundRecord(id) {
  return request({
    url: '/hospital/MaterielOutboundRecord/' + id,
    method: 'delete'
  })
}
